package zjitc.interfa2.charge;

/**
 * @Author admin
 * @Date 2019/3/22 10:51
 */
public class ChargeFactory {
    public static  Charge setcharge(int a){
        Charge charge;
        if (a==1){
            charge=new Car();
        }else {
            charge=new Bus();
        }
        return charge;
    }
}
